package com.wlf.admin.module.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

/**
 * 订单表
 */
@Data
@TableName(value = "pay_order")
public class PayOrder implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 机构Id
     */
    @TableField(value = "organ_id")
    private Long organId;

    @TableField(exist = false)
    private String organName;

    /**
     * 订单编号
     */
    @TableField(value = "order_no")
    private String orderNo;

    /**
     * 订单金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 入库时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 机构OrganIdsStr,用来接收参数
     */
    @TableField(exist = false)
    private String organIdsStr;

    private static final long serialVersionUID = 1L;
}